-- GENERATED SPELL FOR [Deathstrike Tarantula] --


function spell0_769(pUnit, Event) --@Fatal Bite,Heal--
pUnit:FullCastSpellOnTarget(7938,pUnit)
pUnit:RegisterEvent('Sorts_769', 601, 1)
end

function spell1_769(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_769', 30000, 1)
end

function Sorts_769(pUnit, Event)
local choix_sorts_769 = math.random(0, 1)
if choix_sorts_769 == 0 then
pUnit:RegisterEvent('spell0_769', 1, 1)
end
if choix_sorts_769 == 1 then
pUnit:RegisterEvent('spell1_769', 1, 1)
end
end

function mob769_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_769', math.random(1500, 3000), 1)
end

function mob769_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob769_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob769_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(769, 1, 'mob769_Action')
RegisterUnitEvent(769, 2, 'mob769_Leave')
RegisterUnitEvent(769, 3, 'mob769_Kill')
RegisterUnitEvent(769, 4, 'mob769_Die')
